package com.haoshuang.zhouzhoubang.ui.adapter

import com.haoshuang.zhouzhoubang.databinding.ItemBalanceCateBinding
import com.mufeng.libs.base.BaseBindingHolder
import com.mufeng.libs.base.BaseBindingQuickAdapter
data class BalanceCate(
    val id: Int,
    val name: String,
    var isChoose: Boolean = false
)
/**
 * 
 */
class BalanceCateAdapter(data: MutableList<BalanceCate>) : BaseBindingQuickAdapter<BalanceCate, ItemBalanceCateBinding>(data) {

    override fun onBindViewHolder(holder: BaseBindingHolder, position: Int, item: BalanceCate?) {
        holder.getViewBinding<ItemBalanceCateBinding>().apply {
            tvTitle.text = item?.name
            tvTitle.isSelected = item?.isChoose == true
        }
    }


}
